package com.bwie.mq;

import com.bwie.common.domain.response.SpotResponse;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "spot")
public class SpotMq {
    public void receive(String msg){
        System.out.println("spot:"+msg);
    }

    public void send(SpotResponse spot) {
        System.out.println("消息已发送");
    }
}
